package Luogu;

import java.util.Scanner;

public class test5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[100];
        int flag = 0;
        int j = 0;
        int count=0;
        while (true) {
            int num = sc.nextInt();
            arr[j] = num;
            j++;
            if (num == -1) {
                break;
            }
        }
        for (int i = 0; i < j; i++) {
                if(flag==0){
                    for (int k = 0; k < arr[i]; k++){
                        System.out.print(0);
                        count++;
                        if(count==n){
                            System.out.println();
                            count=0;
                        }
                        flag=1;
                    }
                }
                else{
                    for (int k = 0; k < arr[i]; k++){
                        System.out.print(1);
                        count++;
                        if(count==n){
                            System.out.println();
                            count=0;
                        }
                        flag=0;
                    }
                }

        }
    }
}
